package com.example.growthmuseum.service;

import com.example.growthmuseum.data.model.Result;
import com.example.growthmuseum.data.model.User;

import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import rx.Observable;

/**
 * Created by Roman on 2016/10/29.
 */
public interface UserService {

    @PUT("user/updateUser")
    Observable<Result<Integer>> updateUser(@Body User user);
    @POST("user/addUser")
    Observable<Result<Integer>> addUser(@Body User user);
    @POST("user/login")
    Observable<Result<Integer>> login(@Body User user);
}
